package net.gazhi.delonix.core.web;

import org.springframework.boot.web.servlet.ErrorPage;
import org.springframework.http.HttpStatus;

public interface ErrorPages {

	ErrorPage BAD_REQUEST_400 = new ErrorPage(HttpStatus.BAD_REQUEST, "/WEB-INF/jsp/error/400.jsp");
	ErrorPage UNAUTHORIZED_401 = new ErrorPage(HttpStatus.UNAUTHORIZED, "/WEB-INF/jsp/error/401.jsp");
	ErrorPage FORBIDDEN_403 = new ErrorPage(HttpStatus.FORBIDDEN, "/WEB-INF/jsp/error/403.jsp");
	ErrorPage NOT_FOUND_404 = new ErrorPage(HttpStatus.NOT_FOUND, "/WEB-INF/jsp/error/404.jsp");
	ErrorPage INTERNAL_SERVER_ERROR_500 = new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/WEB-INF/jsp/error/500.jsp");
	ErrorPage INTERNAL_SERVER_EXCEPTION_500 = new ErrorPage(Exception.class, "/WEB-INF/jsp/error/500.jsp");

	ErrorPage[] PAGES = new ErrorPage[] { BAD_REQUEST_400, UNAUTHORIZED_401, FORBIDDEN_403, NOT_FOUND_404, INTERNAL_SERVER_ERROR_500, INTERNAL_SERVER_EXCEPTION_500 };

}
